import {basePort} from './global.toml'

export default {
  baseURL: function () {
    // const urlStr = window.location.href.toString().substring(0, window.location.href.toString().lastIndexOf('/'))
    // const urlStrArr = urlStr.split(':')
    // const ipString = urlStrArr[0] + ':' + urlStrArr[1]
    // const apiHost = ipString + ':' + basePort
    // return apiHost
    return 'http://xsdmkj.cn' + ':' + basePort
  }
}
